const ifame=document.querySelector('iframe').replaceWith;

console.log(ifame.body)